package ch8;

import java.util.Scanner;


public class test {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入8个数");
        double[] num = new double[8];
        double sum=1;
        for (int i = 0; i < num.length; i++) {
            num[i]=scan.nextDouble();
            sum*=num[i];
        }
        System.out.println("数组中所有数的积为 ："+sum);
    }
}